package xyz.yohao.flow.bean.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import xyz.yohao.flow.common.constants.EntityConstants;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("wf_template")
public class WorkflowTemplate implements Serializable {
    private static final Long serialVersionUID = 1L;

    /*
     * 主键id
     */
    @TableId
    public Long id;

    /**
     * 模版编码
     */
    public String templateCode;

    /**
     * 模版名称
     */
    public String templateName;

    /**
     * 类别id
     */
    public Long categoryId;

    /**
     * 流程表单id
     */
    public Long formId;

    /**
     * 备注
     */
    public String remark;

    /**
     * 是否删除
     */
    public Integer isDeleted;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = EntityConstants.ENTITY_TIME_FORMAT)
    public Date createTime;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = EntityConstants.ENTITY_TIME_FORMAT)
    public Date updateTime;

    /**
     * 租户id
     */
    public Long tenantId;
}
